<ul class="nav flex-column">
  <li class="nav-item" style="margin-top: 20px">
    <a
      class="nav-link active"
      aria-current="page"
      href="/views/admin/home/index.html"
      id="index"
    >
      <span style="padding: 0.25rem">首页</span></a
    >
  </li>

  <li class="nav-item" id="useritem">
    <div class="accordion" id="accordionExample">
      <div class="accordion-item">
        <h2 class="accordion-header" id="headingOne">
          <button
            class="accordion-button"
            type="button"
            data-bs-toggle="collapse"
            data-bs-target="#user-manage"
            aria-expanded="true"
            aria-controls="collapseOne"
          >
            用户管理
          </button>
        </h2>
        <div
          id="user-manage"
          class="accordion-collapse collapse show"
          aria-labelledby="headingOne"
          data-bs-parent="#accordionExample"
        >
          <div class="accordion-body">
            <a
              class="nav-link active"
              aria-current="page"
              href="/views/admin/user/create/index.html"
              id="create"
              >添加用户</a
            >
            <a
              class="nav-link active"
              aria-current="page"
              href="/views/admin/user/list/index.html"
              id="list"
              >用户列表</a
            >
          </div>
        </div>
      </div>
    </div>
  </li>
  <li class="nav-item">
    <div class="accordion" id="accordionExample2">
      <div class="accordion-item">
        <h2 class="accordion-header" id="headingOne">
          <button
            class="accordion-button"
            type="button"
            data-bs-toggle="collapse"
            data-bs-target="#news-manage"
            aria-expanded="true"
            aria-controls="collapseOne"
          >
            新闻管理
          </button>
        </h2>
        <div
          id="news-manage"
          class="accordion-collapse collapse show"
          aria-labelledby="headingOne"
          data-bs-parent="#accordionExample2"
        >
          <div class="accordion-body">
            <a
              class="nav-link active"
              aria-current="page"
              href="/views/admin/news/create/index.html"
              id="addnews"
              >创建新闻</a
            >
            <a
              class="nav-link active"
              aria-current="page"
              href="/views/admin/news/list/index.html"
              id="list"
              >新闻列表</a
            >
          </div>
        </div>
      </div>
    </div>
  </li>
</ul>
<style>
  .accordion-button:not(.collapsed) {
    color: black;
    background-color: white;
    box-shadow: none;
  }

  .accordion-item {
    border: none;
  }

  .nav-link {
    color: black;
  }

  .accordion-button:focus {
    box-shadow: none;
  }
</style>
